import http from "@/utils/http"

export const addToCart=({goodsId,count,...blessing})=>{
  // console.log(...blessing);
  console.log(blessing);
return  http.get(`/cart/addToCart/${goodsId}/${count}`,blessing)
}
export const getCartList=()=>{
  return http.get('/cart/getCartList')
}
export const checkCart=({goodsId,isChecked})=>{
  return http.get(`/cart/checkCart/${goodsId}/${isChecked}`)
}
export const checkAllCart=(isChecked)=>{
  return http.get(`/cart/checkAllCart/${isChecked}`)
}

export const deleteGood=(goodsId)=>{
  return http.get(`/cart/delete/${goodsId}`)
}